export default {
  namespace: 'testing',
  state: {
    testName: 'name123',
  },
  reducers: {
    updateState(state, {payload}) {
      console.log('reducer updateState');
      return {
        ...state,
        ...payload,
      };
    },
  },
  effects: {
    * changeName({payload}, {call, put}) {
      console.log('changeName effects');
      const {value} = payload;
      yield put({
        type: 'updateState',
        payload: {testName: value},
      });
    },
  },
  subscriptions: {},
};
